package sctu.edu.java.year2016.team04.baiyunfei.day20160530.chapter8_3;

import sctu.edu.java.year2016.team08.yangying.day20160527.chapter7_1.S;

/**
 * 尝试创建一个父类和子类，分别创建构造方法，然后向父类和子类添加成员变量和方法，并总结构建子类对象时的顺序
 * Created by DE on 2016/5/30.
 */
public class Chapter8_3s extends Chapter8_3f{
    private String myName;
    private String name;



    public Chapter8_3s(String myName,String name){
        super(name,3);
        this.myName=myName;
        this.name=name;
    }

    @Override
    public void dispiay(){
        System.out.println(this.myName+"喜欢"+this.name);
    }
}
